aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMountain Man <43313373+MountainMan1312@users.noreply.github.com>2023-06-06 22:24:59 -0400
committerMountain Man <43313373+MountainMan1312@users.noreply.github.com>2023-06-06 22:24:59 -0400
commit939ab0490ea56d90eb1224e1640271cd7b804af3 (patch)
tree577b2ff5f5b5e545e73d89aa338b93bb2d3dd7e7
parentAdd `setxkbmap` option to change CAPS LOCK to SUPER (diff)
downloaddotfiles.old-939ab0490ea56d90eb1224e1640271cd7b804af3.tar.gz
dotfiles.old-939ab0490ea56d90eb1224e1640271cd7b804af3.tar.bz2
dotfiles.old-939ab0490ea56d90eb1224e1640271cd7b804af3.zip
Fix for Emacs Vterm $PS1
-rw-r--r--home/.bashrc11
1 files changed, 6 insertions, 5 deletions
diff --git a/home/.bashrc b/home/.bashrc
index 88b1634..bc5e0a6 100644
--- a/home/.bashrc
+++ b/home/.bashrc
@@ -111,15 +111,16 @@ vterm_printf() {
111 fi 111 fi
112} 112}
113 113
114vterm_prompt_end(){
115 vterm_printf "51;A$(whoami)@$(hostname):$(pwd)"
116}
117
114if [[ "$INSIDE_EMACS" = 'vterm' ]]; then 118if [[ "$INSIDE_EMACS" = 'vterm' ]]; then
115 function clear() { 119 function clear() {
116 vterm_printf "51;Evterm-clear-scrollback"; 120 vterm_printf "51;Evterm-clear-scrollback";
117 tput clear; 121 tput clear;
118 } 122 }
123 PS1="$ "
124 PS1=$PS1'\[$(vterm_prompt_end)\]'
119fi 125fi
120
121vterm_prompt_end(){
122 vterm_printf "51;A$(whoami)@$(hostname):$(pwd)"
123}
124PS1=$PS1'\[$(vterm_prompt_end)\]'
125######################################################################## 126########################################################################